% !TeX root = ../Mao.tex
\usepackage{geometry}
% \geometry{inner=28mm, outer=27mm, tmargin=36mm, bmargin=35mm}
\geometry{a5paper, inner=10mm, outer=15mm, top=18mm, bottom=15mm}




\usepackage[perpage]{footmisc}	% 脚注每页清零
\renewcommand\thefootnote{\fnsymbol{footnote}}

\usepackage{endnotes} % 尾注
\usepackage{etoolbox}
\makeatletter
\def\enoteheading{%\section*{
	\vskip 2.3ex minus .5ex
	\Large\textbf{\notesname}
	\@mkboth{\MakeUppercase{\notesname}}{\MakeUppercase{\notesname}}%}%
	\mbox{}\par\vskip-.667\baselineskip\noindent\rule{.5\textwidth}{0.4pt}\par\vskip.1\baselineskip}
\renewcommand\enoteformat{\rightskip\z@ \leftskip\z@
	\parindent=2em
	\leavevmode%\llap
	% {\makeenmark}
	{\hbox{\normalfont\@theenmark}}
	}

\renewcommand\@makeenmark{\hbox{\@textsuperscript{\normalfont\@theenmark}}}

\makeatother
\csappto{theendnotes}{\setcounter{endnote}{0}}
%\counterwithin{endnote}{chapter}
\renewcommand\theendnote{\mbox{〔\arabic{endnote}〕\kern-.333em}}
% \renewcommand\theendnote{\Circled{\arabic{endnote}}}
\renewcommand\notesname{注~~释}





% %%%%%%%%%%%%%%%%%%%%%%%%%
% %%%		小点缀也很美，用titlesec简单修饰下小节样式
% \usepackage{xcolor}
% \usepackage[explicit]{titlesec}

% %Setting section title bg color
% \definecolor{redbg}{RGB}{235, 214, 214}
% %Setting subsection and subsubsection title color
% \definecolor{Red}{RGB}{163, 25, 25}

% \titleformat{\chapter}
%   {\normalfont\LARGE\bfseries}
%   {}
%   {0em}
%   {\colorbox{redbg}{\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\textcolor{Red}{\CTEXthechapter\quad#1}}}}

% \titleformat{\section}
%   {\normalfont\LARGE\bfseries}
%   {}
%   {0em}
%   {\colorbox{redbg}{\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\textcolor{Red}{\CTEXthesection\quad#1}}}}

% %Underlining ruler for subsections
% \titleformat{\subsection}
%   {\normalfont\Large\bfseries\color{Red}}
%   {\CTEXthesubsection}
%   {1em}
%   {#1}
%   [{\titlerule[0.8pt]}]



\usepackage[colorlinks,linkcolor=black]{hyperref}

\usepackage{markdown}
\markdownSetup{hybrid = true}




%% 指定 include input 路径
\makeatletter
\providecommand*\input@path{}
\newcommand\addinputpath[1]{
	\expandafter\def\expandafter\input@path
	\expandafter{\input@path{#1}}}
\addinputpath{Chapters/}
\makeatother







\endinput
